package pojo;

import lombok.Data;

public class Car {
    private int car_id;//车辆ID
    private String model;//车辆型号
    private String brand;//车辆品牌
    private String license_plate;//车牌号
    private String status;//车辆状态，'可租', '已租', '维护中'
    private int rental_rate;//租金
    private String fuel_type;//燃油类型
    private String color;//车辆颜色
    private int mileage;//车辆里程数

    public Car() {
    }

    public Car(int car_id, String model, String brand, String license_plate, String status, int rental_rate, String fuel_type, String color, int mileage) {
        this.car_id = car_id;
        this.model = model;
        this.brand = brand;
        this.license_plate = license_plate;
        this.status = status;
        this.rental_rate = rental_rate;
        this.fuel_type = fuel_type;
        this.color = color;
        this.mileage = mileage;
    }

    @Override
    public String toString() {
        return "Car{" +
                "car_id=" + car_id +
                ", model='" + model + '\'' +
                ", brand='" + brand + '\'' +
                ", license_plate='" + license_plate + '\'' +
                ", status='" + status + '\'' +
                ", rental_rate=" + rental_rate +
                ", fuel_type='" + fuel_type + '\'' +
                ", color='" + color + '\'' +
                ", mileage=" + mileage +
                '}';
    }

    public int getCar_id() {
        return car_id;
    }

    public void setCar_id(int car_id) {
        this.car_id = car_id;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getLicense_plate() {
        return license_plate;
    }

    public void setLicense_plate(String license_plate) {
        this.license_plate = license_plate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getRental_rate() {
        return rental_rate;
    }

    public void setRental_rate(int rental_rate) {
        this.rental_rate = rental_rate;
    }

    public String getFuel_type() {
        return fuel_type;
    }

    public void setFuel_type(String fuel_type) {
        this.fuel_type = fuel_type;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getMileage() {
        return mileage;
    }

    public void setMileage(int mileage) {
        this.mileage = mileage;
    }
}
